package cn.kgc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kgc.entity.User;
public interface Dao {

	User getLog(@Param("sname")String sname, @Param("password")int password);

	List<User> getAllUser();

	List<User> getSearchUser(@Param("sname")String sname, @Param("gender")int gender, @Param("yanzhi")int yanzhi);

	int deleteUser(int sid);

	int modifyUser(@Param("sid")int sid, @Param("sname")String sname, @Param("age")int age, @Param("yanzhi")int yanzhi,@Param("gender")int gender);

	int addUser(@Param("sname")String sname, @Param("age")int age, @Param("gender")int gender, @Param("yanzhi")int yanzhi);

	User ajaxquery(String sname);

	List<User> getUser();

}
